<%@ page contentType="text/html;charset=GB2312"%>
<%@ page language="java" import="java.util.*,control.database.*,java.sql.*"%>

<%
String ZhpID="1";

String Operation1=request.getParameter("operation1");
//String Operation2=request.getParameter("operation2");
//System.out.println(ZhpID+"  "+Operation1+"  "+Operation2+"");
String sql="";
DataBase db=new DataBase();

if(!(ZhpID!=null&&Operation1!=null)){

response.sendRedirect("error.jsp");
}
ZhpID=request.getParameter("ZhpID");
sql="update CQ_Cmn_ZhpDisplay set operation1='"+Operation1+"' where ZhpID="+ZhpID;

db.executeUpdate(sql);

db.closeStmt();
db.closeConn();
System.out.println(sql);
response.sendRedirect("success.jsp");
%>